Simplify 32-bit Android bit fiddling
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 12 May 2024 21:26:32 +0000 (14:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 May 2024 17:23:51 +0000 (10:23 -0700)
commit21ed391440ec9c227f3d18cc222aab2d3d0f9e14
tree12566d127f73c9e55e1fb94b0ed3524971937579
parent88b0bb4db9aaecff8b01e81726b911fa5d02b2fb
Simplify 32-bit Android bit fiddling

* src/sfnt.c: Include stdbit.h.
(sfnt_count_leading_zero_bits) [!INT64_MAX]: Remove this function,
which was confusingly named as it actually returned 31 minus the
number of leading zero bits.
(sfnt_multiply_divide_2) [!INT64_MAX]: Use stdc_leading_zeros instead.
src/sfnt.c